import { CoolController, BaseController } from '@cool-midway/core';
import { Body, Inject, Post, Get, Query } from '@midwayjs/core';
import { AnchorDynamicEntity } from '../../entity/dynamic'; 
import { AnchorDynamicService } from '../../service/dynamic'; 

/**
 * anchorDynamic模块-动态信息
 */
@CoolController({
  api: ['add', 'delete', 'update', 'info', 'list', 'page'],
  entity: AnchorDynamicEntity,
  service: AnchorDynamicService,
  pageQueryOp: {
    keyWordLikeFields: ['anchorName', 'content'],
    fieldEq: ['type'],
  }
})
export class AdminAnchorDynamicController extends BaseController {
    @Inject()
    anchorDynamicService: AnchorDynamicService;
}
